{% extends 'basic.html' %}
{% load static %}
{% block title %}投票结果页{% endblock  %}
{% block content %}
    <div class="row h4">
    <h1 class="text-center text-warning">{{ question.id }}号问题投票结果</h1>
    <table class="table table-bordered table-striped table-hover h4">
        <thead class="bg-primary">
            <tr>
                <td colspan="2">{{ question.question_text }}</td>
            </tr>
        </thead>
        {% for choice in question.choice_set.all %}
            <tr>
                <td>{{ choice.choice_text }}</td>
                <td>{{ choice.vote }}</td>
            </tr>
        {% endfor %}
    </table>
    <div>
        <a href="{% url 'Post:index' %}">返回首页</a>
    </div>
</div>
{% endblock  %}